import java.util.Scanner;

class Person {
    String name;
    String sex;
    int age;


    public String getSex(String sex) {
        return sex;
    }

    public int getAge(int age) {
        return age;
    }

    public String getName(String name) {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        System.out.println("姓名:" + name);
    }

    public void setSex(String sex) {
        this.sex = sex;
        System.out.println("性别:" + sex);
    }

    public void setAge(int age) {
        this.age = age;
        System.out.println("年龄:" + age);
    }
}
public class Test extends Person {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String name = scanner.next();
        String sex = scanner.next();
        int age = scanner.nextInt();
        Person person = new Person();
        person.setName(name);
        person.setSex(sex);
        person.setAge(age);
        scanner.close();
    }
}